# -*- mode: snippet -*-
# name: metafor::rma Meta-Analysis via Linear (Mixed-Effects) Models
# key: rma@metafor
# contributor: Shuguang Sun
# --
$0 <- metafor::rma(
  ai = ai, ci = ci, n1i = n1i, n2i = n2i,
  measure = "RR",
  data = ${1:dt},
  slab = ${2:glue::glue("{study} ({pop})")},
  # subset,
  add=1/2,
  method = "REML"
)
